import { defineStore } from 'pinia'
import { getCityAll } from '@/services'
export const useCityStore = defineStore('city', {
  state: () => ({
    allCities: {},
    curCity: {
      cityName:'北京'
    }
  }),
  getters: {
  },
  actions: {
    async fetchAllCities() {
      const res = await getCityAll()
      this.allCities = res.data
    }
  }
})
